<template>
	<navigator class="goods-item" :url="`/pages/goods/show?id=${goods.id}`">
		<u-image class="u-skeleton-fillet" width="100%" height="300rpx"
			:src="goods.image"></u-image>
		<view class="title u-skeleton-fillet">电脑</view>
		<view class="u-flex u-row-between">
			<view class="price u-skeleton-fillet">￥12.3</view>
			<view class="sales u-skeleton-fillet">销量:99</view>
		</view>
	</navigator>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		props:{
			goods:{
				type:Object,
				default(){
					return{}
				}
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	
    .goods-item {
		padding: 40rpx;
		box-shadow: 0 12rpx 20rpx 0 rgba(0,0,0,.1);
		.title {
			margin: 10rpx;
			font-size: 30rpx;
			font-weight: bold;
			width: 330rpx;
		}

		.price {
			color: red;
			width: 60rpx;
		}

		.sales {
			color: #888;
			width: 100rpx;
		}
	}
</style>
